import Vue from 'vue'
import VueRouter from 'vue-router'


import Home from './views/index.vue'
import User from './views/UserInfos/index.vue'
import Student from './views/Students/index.vue'
import Class from './views/Classes/index.vue'
import CourseList from './views/Course/list/index.vue'
import CourseYear from './views/Course/year/index.vue'
import ExamList from './views/Exam/list/index.vue'
import ExamResult from './views/Exam/result/index.vue'
import English from './views/English/index.vue'
import AdminLog from './views/Logs/index.vue'
import StudentLog from './views/StudentLogs/index.vue'
import WeChat from './views/WeChats/list/index.vue'
import Menu from './views/WeChats/menu/index.vue'
import WeChatMessage from './views/WeChats/message/index.vue'
import WeChatUsers from './views/WeChats/users/index.vue'
import WeChatSource from './views/WeChats/source/index.vue'
import PictureSource from './views/WeChats/source/picture/index.vue'
import ArticleSource from './views/WeChats/source/article/index.vue'

import WechatAutoIndex from './views/WeChats/index.vue'
import ClassGroup from './views/ClassGroup/index.vue'
import StudentGroup from './views/StudentGroup/index.vue'
import ClassStudents from './views/ElectiveStudent/index.vue'

import WeChatReply from './views/WeChats/reply/index.vue'
import WeChatMass from './views/WeChats/mass/send.vue'
import weChatMassLog from './views/WeChats/mass/index.vue'
import Teachers from './views/Teacher/index.vue'

import Roles from './views/Rbac/index.vue'

import CanProUser from './views/CanProUser/index.vue'
import Professional from './views/Professional/index.vue'

import StudentConfirmation from  './views/StudentConfirm/index.vue'
// import Company from './views/Companys/index.vue'
// import Post from './views/Posts/index.vue'
import weChatTemplate from './views/WeChats/template/index.vue'
import VideoSource from './views/WeChats/source/video/index.vue'
import VoiceSource from './views/WeChats/source/voice/index.vue'

import WeChatMyMass from './views/WeChats/mass/mySend/index.vue'
Vue.use(VueRouter);

export default new VueRouter({
    routes: [
        {path: '/', component: Home},
        {path: '/users', component: User},
        {path:'/adminlogs',component:AdminLog},
        {path:'/teachers',component:Teachers},
        {path:'/studentlogs',component:StudentLog},
        {path:'/students',component: Student},
        {path:'/classes',component: Class},
        {path:'/course/list',component: CourseList},
        {path:'/course/year',component:CourseYear},
        {path:'/exam/list',component:ExamList},
        {path:'/exam/result',component:ExamResult},
        {path:'/roles',component:Roles},
        {path:'/classStudents',component:ClassStudents},
        {path:'/classGroup',component:ClassGroup},
        {path:'/studentGroup',component:StudentGroup},

      {path:'/student-confirmation',component:StudentConfirmation},

        {path:'/english',component:English},
        {path:'/wechat/list',component:WeChat},
        // {path:'/wechat/menu',component:Menu},
        // {path:'/wechat/message',component:WeChatMessage},
        {path:'/wechat/users',component:WeChatUsers},
        {path:'/wechat/mass',component:WeChatMass},
        {path:'/wechat/mymass',component:WeChatMyMass},
        {path:'/professional/list',component:Professional},
        {path:'/professional/user',component:CanProUser},
        {path:'/wechat/massLog',component:weChatMassLog},
        {path:'/wechat/template',component:weChatTemplate},
        {path:'/wechat/index',component:WechatAutoIndex,
            children: [
                {
                    // 当 /user/:id/posts 匹配成功
                    // UserPosts 会被渲染在 User 的 <router-view> 中
                    path: 'menu',
                    component: Menu
                },
                {
                    // 当 /user/:id/profile 匹配成功，
                    // UserProfile 会被渲染在 User 的 <router-view> 中
                    path: 'message',
                    component: WeChatMessage
                },
                {
                    path: 'replyMessage',
                    component: WeChatReply
                }
            ]
        },
        {path:'/wechat/source',component:WeChatSource,
            children: [
                {
                    // 当 /user/:id/posts 匹配成功
                    // UserPosts 会被渲染在 User 的 <router-view> 中
                    path: 'picture',
                    component: PictureSource
                },
                {
                    // 当 /user/:id/profile 匹配成功，
                    // UserProfile 会被渲染在 User 的 <router-view> 中
                    path: 'article',
                    component: ArticleSource
                },
                {
                    // 当 /user/:id/profile 匹配成功，
                    // UserProfile 会被渲染在 User 的 <router-view> 中
                    path: 'voice',
                    component: VoiceSource
                },
                {
                    // 当 /user/:id/profile 匹配成功，
                    // UserProfile 会被渲染在 User 的 <router-view> 中
                    path: 'video',
                    component: VideoSource
                }


            ]
        }
    ],
    linkActiveClass: 'active'
});
